- content_for :javascript do
  initialize_update_notification_settings_form("#{I18n.locale}","#{target_user.id.to_s}");

- content_for :title_header do
  %h1= t("layouts.no_tribe.settings")

= render :partial => "layouts/left_hand_navigation", :locals => { :links => settings_links_for(target_user, @current_community) }

#person_settings_form.left-navi-section.settings-section.notification-settings
  = form_for target_user do |form|

    - if @current_community.automatic_newsletters
      %h2= t(".community_updates")
      = render :partial => "community_updates_radiobutton", :collection => [["email_daily_community_updates", 1], ["email_weekly_community_updates", 7], ["do_not_email_community_updates", 100000]], :as => :options, locals: {target_user: target_user}

    %h2.lower= t(".newsletters")
    = render :partial => "notification_checkbox", :collection => Person::EMAIL_NEWSLETTER_TYPES, :as => :notification_type, locals: {target_user: target_user}

    %h2.lower= t(".i_want_to_get_email_notification_when")
    = render :partial => "notification_checkbox", :collection => @current_community.email_notification_types, :as => :notification_type, locals: {target_user: target_user}

    = hidden_field_tag "person[preferences][empty_notification]", '1'
    = form.button t("settings.save_information"), :class => "send_button_notifications"
